
<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/non-responsive/">
    <title>zzy-forum</title>
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/examples/non-responsive/non-responsive.css" rel="stylesheet">
    <!--[if lt IE 9]><script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/ie-emulation-modes-warning.js"></script>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        ul{
            list-style: none;
        }
        .pl>li{
            padding-top: 10px;
            border-bottom: 1px solid black;
        }
        .pl>li>ul>li{
            padding-bottom: 10px;
        }
    </style>
  </head>

  <body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
        <div th:fragment="top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">zzy_forum</a>
                </div>
                <div id="navbar" class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="/">主页</a></li>
                        <li><a href="/getmessage">发布</a></li>
                        <li><a href="/getfriend">关注</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="/getmyselfinfo ">个人信息</a></li>
                                <li><a href="/getother">我的博客</a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="/exit">退出</a></li>
                        <li th:if="${userblogs}"><a th:href="@{/like/}+${blod.id}">点赞</a></li>
                        <li th:if="${friend}" class="active"><a th:href="@{/addfriend/}+${blod.userId}">关注 <span class="sr-only">(current)</span></a></li>
                    </ul>
                </div><!--/.nav-collapse -->
            </div>
        </div>
    </nav>

    <div class="container">

      <div class="page-header">
        <h1 th:text="${blod.title}">标题</h1>
        <p th:text="${blod.userId}" class="lead" style="font-size:25px">作者</p>
      </div>

      <p style="font-size:20px"><pre th:text="${blod.content}"></pre></p>

      <h3 th:text="${#dates.format(blod.createTime,'yyyy-MM-dd')}">创建时间</h3>
      <hr>
    </div> <!-- /container -->

    <div class="container">
        <h2>评论</h2>
        <form th:action="@{/blogs/comment/}+${blod.id}" method="get">
            <textarea name="content" class="form-control" rows="3" style="font-size: 20px;"></textarea>
            <button type="submit">提交</button>
        </form>

        <div>
            <ul class="pl">
                <li th:each="comment:${comments}">
                    <ul>
                        <li th:text="${comment.username}">用户名</li>
                        <li th:text="${comment.content}">发表信息</li>
                        <li th:text="${comment.createTime}">时间</li>
                    </ul>
                </li>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
